
package com.ballcat.spring.cloud.learning.service.impl;

import com.ballcat.spring.cloud.learning.entity.Payment;
import com.ballcat.spring.cloud.learning.mapper.PaymentMapper;
import com.ballcat.spring.cloud.learning.service.PaymentService;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * @author pengshun
 * @date 2022-04-04 17:32
 * @description
 */
@Service
@Slf4j
@AllArgsConstructor
public class PaymentServiceImpl implements PaymentService {

    private final PaymentMapper paymentMapper;


    @Override
    public Integer save(Payment payment) {
        return paymentMapper.save(payment);
    }

    @Override
    public Payment getById(Integer id) {
        return paymentMapper.getById(id);
    }
}
